package com.weimengchao.client;

import com.weimengchao.client.fallback.ProviderClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description:
 * @author: 魏孟超
 * @createDate: 2022-09-26 18:43
 */
@FeignClient(name = "nacos-provider", fallback = ProviderClientFallback.class)
public interface ProviderClient {

    @GetMapping("hello")
    String hello(@RequestParam String name);

}
